const mongoose = require('mongoose')
// 购物车
const cartSchema = mongoose.Schema({
  count: Number,// 数量 
  user_id: String,//用户id
  good_id: String,//商品id
  state: { type: Number, default: 1 },//商品状态-默认未支付
  checked: { type: Boolean, default: true },//选择状态-默认选中
})

const cartModel = mongoose.model('carts', cartSchema);

module.exports = {
  cartModel
}